package com.phiture.erp.basic.core.pojo.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户自定义配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpUserCustomizeConfigRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30369")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("common_status")
    private Integer status;

    @Schema(description = "配置键", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("配置键")
    private String configKey;

    @Schema(description = "配置值", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("配置值")
    private String configValue;

    @Schema(description = "配置描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("配置描述")
    private String configDesc;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "变更时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("变更时间")
    private LocalDateTime updateTime;

}